package andy.demo.data;

import java.io.Serializable;


/**
 * 
 * @author wangdw
 *
 */
public class BGSNotifyNotification extends NotifyBase
{
    
/*
不用的字段:time,fixed


<notifyItems>

    <notifyItem type="1">
        <id>MSG1369281394960</id>
        <time>11:56</time>
        <title>你附近的【toolnv】对你说</title>
        <icon>http://pd.youyuan.com/resize/photo/n/y/n/120/150/201206/30/13/24/1341033898608.jpg</icon>
        <notification>
            <txt>xxxxxxxxx</txt>
            <url>sea_me_stat.jwml?uid=86119829</url>
            <fixed>false</fixed>
        </notification>
    </notifyItem>
    <notifyItem type="2">
        <id>MSG1375494959270</id>
        <time>09:55</time>
        <title>系统通知</title>
        <notification>
            <txt>您有1个重要通知，点击阅读</txt>
            <url>msg_box_stat.jwml</url>
            <fixed>true</fixed>
        </notification>
    </notifyItem>
</notifyItems>
    

*/

    private static final long serialVersionUID = 8426044153040660552L;
    public String title = null;
    public String icon = null;
    public String pos = null;
    
    public Notification notification = new Notification();

    public class Notification implements Serializable {
        private static final long serialVersionUID = -159671211807107606L;
        public String txt = null;
        public String url = null;
    }
    
    @Override
    public String toString() {
        return "type:" + type + "\n" 
                + "id:" + id + "\n" 
                + "title:" + title + "\n" 
                + "icon:" + icon+ "\n" 
                + "pos:" + pos+ "\n" 
                + "txt:" + notification.txt + "\n"
                + "url:" + notification.url + "\n";
    }
}
 

